﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DC2010.Objects.Structures;

namespace DC2010.Systems
{
    public class SpriteSystem : BaseSystem<SpriteInfo, SpriteGfx, SpriteData>
    {
        public override void Init(string code)
        {
            IsUsingInfo = true;
            IsUsingData = true;
            IsUsingGfx = false;

            InfoFileName = "Data\\" + code + "Info.xml";
            GfxFileName = "Data\\" + code + "Gfx.xml";
            DataFileName = "Temp\\" + code + "Data.xml";

            Code = code;

            DateTime dtStart = DateTime.Now;

            base.Init(code);

            log.Info("Core, Animations init takes: " + (DateTime.Now - dtStart).TotalSeconds + " seconds");
        }
    }
}
